<?php
	require_once('assert.php');
	
	define("WORKSPACE_WIDTH",850);
	define("WORKSPACE_HEIGHT",700);
	//workspace width or height * ACTIVE_WORKSPACE_FACTOR is the maximal size of the canvas to work in.
	define("ACTIVE_WORKSPACE_FACTOR", 2/3);

	define("WORKSPACE_DIALOG_WIDTH",1000);
	define("WORKSPACE_DIALOG_HEIGHT",800);
	define("IMAGE_UPLOAD_DIALOG_WIDTH",800);
	
	require_once(dirname(__FILE__) . '/../viae/templateBuilder.php');
	
	//setup
	$configs = array();
	
	$input = new GivenCanvasConfiguration();
	$input->extendedCanvasWidthCm = 10;
	$input->extendedCanvasHeightCm = 5;
	$input->bleedXLCm = 1;
	$input->bleedXRCm = 3;
	$input->bleedYTCm = 2;
	$input->bleedYBCm = 4;
	$input->dpi = 100;
	$input->price = 50;
	array_push($configs, $input);
	
	$input = new GivenCanvasConfiguration();
	$input->extendedCanvasWidthCm = 5;
	$input->extendedCanvasHeightCm = 10;
	$input->bleedXLCm = 1;
	$input->bleedXRCm = 3;
	$input->bleedYTCm = 2;
	$input->bleedYBCm = 4;
	$input->dpi = 75;
	$input->price = 120;
	array_push($configs, $input);
	
	$input = new GivenCanvasConfiguration();
	$input->extendedCanvasWidthCm = 5;
	$input->extendedCanvasHeightCm = 10;
	$input->bleedXLCm = 1;
	$input->bleedXRCm = 3;
	$input->bleedYTCm = 2;
	$input->bleedYBCm = 4;
	$input->dpi = 300;
	$input->price = 240;
	array_push($configs, $input);
	
	$input = new GivenCanvasConfiguration();
	$input->extendedCanvasWidthCm = 10;
	$input->extendedCanvasHeightCm = 5;
	$input->bleedXLCm = 1;
	$input->bleedXRCm = 3;
	$input->bleedYTCm = 2;
	$input->bleedYBCm = 4;
	$input->dpi = 150;
	$input->price = 50;
	array_push($configs, $input);
	
	//execute
	
	$template = buildTemplate($configs, dirname(__FILE__) . "/_03_verify.php");
	echo $template->execute();
?>